/**
 * 装饰者模式
 *
 * @author ItJianGe
 * @data 2024/8/8 17:01
 */
public class DecoratorMain {
    public static void main(String[] args) {

        Pancake pancake = new Pancake();

        Egg egg = new Egg(pancake);

        Sausag sausag = new Sausag(egg);

        System.out.println("总售价：" + sausag.cost());;
    }
}